package com.sky;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan(value = "com.sky.**.mapper")  //扫描mapper层接口
//@EnableCaching               //开启注解缓
@EnableTransactionManagement //多表操作开启事务
@ServletComponentScan        //开启扫描Servlet的组件
@EnableAsync                 //开启异步线程
@EnableScheduling            //开启定时任务
public class ManagementServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagementServerApplication.class, args);
        log.info(" management-server action success...... ");
    }
}
